package com.dh.project.model;

import com.baomidou.mybatisplus.annotations.IdType;
import com.baomidou.mybatisplus.annotations.TableId;

import java.math.BigDecimal;

/**
 * [STRATO MyBatis Generator]
 * Table: coupon
@mbggenerated do_not_delete_during_merge 2017-04-13 17:24:09
 */
public class Coupon {
    /**
     * Column: coupon.id
    @mbggenerated 2017-04-13 17:24:09
     */
    @TableId(value = "id" ,type = IdType.AUTO)
    private Integer id;

    /**
     *   价格
     * Column: coupon.price
    @mbggenerated 2017-04-13 17:24:09
     */
    private BigDecimal price;

    /**
     *   总数
     * Column: coupon.count_number
    @mbggenerated 2017-04-13 17:24:09
     */
    private Integer count_number;

    /**
     *   有效期
     * Column: coupon.useful_time
    @mbggenerated 2017-04-13 17:24:09
     */
    private String useful_time;

    /**
     *   剩余数量
     * Column: coupon.out_count
    @mbggenerated 2017-04-13 17:24:09
     */
    private Integer out_count;

    /**
     *   状态 1开启 2暂停
     * Column: coupon.coupon_status
    @mbggenerated 2017-04-13 17:24:09
     */
    private String coupon_status;

    /**
     *   创建时间
     * Column: coupon.createtime
    @mbggenerated 2017-04-13 17:24:09
     */
    private String createtime;

    /**
     *   修改时间
     * Column: coupon.modifytime
    @mbggenerated 2017-04-13 17:24:09
     */
    private String modifytime;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public BigDecimal getPrice() {
        return price;
    }

    public void setPrice(BigDecimal price) {
        this.price = price;
    }

    public Integer getCount_number() {
        return count_number;
    }

    public void setCount_number(Integer count_number) {
        this.count_number = count_number;
    }

    public String getUseful_time() {
        return useful_time;
    }

    public void setUseful_time(String useful_time) {
        this.useful_time = useful_time == null ? null : useful_time.trim();
    }

    public Integer getOut_count() {
        return out_count;
    }

    public void setOut_count(Integer out_count) {
        this.out_count = out_count;
    }

    public String getCoupon_status() {
        return coupon_status;
    }

    public void setCoupon_status(String coupon_status) {
        this.coupon_status = coupon_status == null ? null : coupon_status.trim();
    }

    public String getCreatetime() {
        return createtime;
    }

    public void setCreatetime(String createtime) {
        this.createtime = createtime == null ? null : createtime.trim();
    }

    public String getModifytime() {
        return modifytime;
    }

    public void setModifytime(String modifytime) {
        this.modifytime = modifytime == null ? null : modifytime.trim();
    }
}